<?php

namespace app\admin\model;

use think\Model;

class Admin extends Model
{

    public function getUserByUserName($name)
    {
        return $this->where(['status' => 1, 'name' => $name])->find();
    }


}

